#ifndef __INDEX_H_
#define __INDEX_H_

#include <gtk/gtk.h>
#include <sqlite3.h>
#include <string.h>

extern GtkWidget *window_homepage;
extern GtkWidget *window_operation;
extern GtkWidget *window_showdata;
extern GtkWidget *window_modifydata;
extern GtkWidget *window_error;

extern void db_init();
extern void show_warning(GtkWidget *window, char *title, gchar *info);
extern void show_error(GtkWidget *window, char *title, gchar *info);
extern void show_question(GtkWidget *window, char *title, gchar *info);
extern void show_info(GtkWidget *window, char *title, gchar *info);
extern void show_window(GtkWidget *widget, gpointer data);
extern void hide_window(GtkWidget *widget, gpointer data);

#endif